package com.etime.shycourse.wx.applets.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author wb
 * @since 2022-01-11
 */
@ApiModel(value = "Orders对象", description = "")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orderid", type = IdType.AUTO)
    private Integer orderid;

    private String orderno;

    private Integer orderuserid;

    private String orderusertruename;

    private BigDecimal orderpayamount;

    @ApiModelProperty(value = "1--现金	            2--虚拟币")
    private Integer orderpricetype;

    @ApiModelProperty(value = "1--创建    2--完成     3--关闭	  4--退款")
    private Integer orderstate;

    @ApiModelProperty(value = "支付交易号，支付成功后记录")
    private String ordertradeno;

    private BigDecimal orderpaycash;

    private BigDecimal orderpaycoin;

    private Date orderpaytime;

    @ApiModelProperty(value = "微信支付	支付宝支付  银联支付")
    private String orderpayment;

    private Date orderfinishtime;

    private Date orderclosetime;

    private String orderclosedesc;

    private Integer ordercloseuserid;

    private String orderclosename;

    private String ordersuccessdata;

    private String orderfaildata;

    private Integer ordercreateuserid;

    private String ordercreatename;

    @ApiModelProperty(value = "例如： 	              购买	              导入	            ")
    private String ordercreatereason;

    private String ordercallback;

    private Date ordercreatetime;

    private Date orderupdatetime;
    @TableField(exist = false)
    private List<Orderdetail> orderDetailList;

    public List<Orderdetail> getOrderDetailList() {
        return orderDetailList;
    }

    public void setOrderDetailList(List<Orderdetail> orderDetailList) {
        this.orderDetailList = orderDetailList;
    }

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public Integer getOrderuserid() {
        return orderuserid;
    }

    public void setOrderuserid(Integer orderuserid) {
        this.orderuserid = orderuserid;
    }

    public String getOrderusertruename() {
        return orderusertruename;
    }

    public void setOrderusertruename(String orderusertruename) {
        this.orderusertruename = orderusertruename;
    }

    public BigDecimal getOrderpayamount() {
        return orderpayamount;
    }

    public void setOrderpayamount(BigDecimal orderpayamount) {
        this.orderpayamount = orderpayamount;
    }

    public Integer getOrderpricetype() {
        return orderpricetype;
    }

    public void setOrderpricetype(Integer orderpricetype) {
        this.orderpricetype = orderpricetype;
    }

    public Integer getOrderstate() {
        return orderstate;
    }

    public void setOrderstate(Integer orderstate) {
        this.orderstate = orderstate;
    }

    public String getOrdertradeno() {
        return ordertradeno;
    }

    public void setOrdertradeno(String ordertradeno) {
        this.ordertradeno = ordertradeno;
    }

    public BigDecimal getOrderpaycash() {
        return orderpaycash;
    }

    public void setOrderpaycash(BigDecimal orderpaycash) {
        this.orderpaycash = orderpaycash;
    }

    public BigDecimal getOrderpaycoin() {
        return orderpaycoin;
    }

    public void setOrderpaycoin(BigDecimal orderpaycoin) {
        this.orderpaycoin = orderpaycoin;
    }

    public Date getOrderpaytime() {
        return orderpaytime;
    }

    public void setOrderpaytime(Date orderpaytime) {
        this.orderpaytime = orderpaytime;
    }

    public String getOrderpayment() {
        return orderpayment;
    }

    public void setOrderpayment(String orderpayment) {
        this.orderpayment = orderpayment;
    }

    public Date getOrderfinishtime() {
        return orderfinishtime;
    }

    public void setOrderfinishtime(Date orderfinishtime) {
        this.orderfinishtime = orderfinishtime;
    }

    public Date getOrderclosetime() {
        return orderclosetime;
    }

    public void setOrderclosetime(Date orderclosetime) {
        this.orderclosetime = orderclosetime;
    }

    public String getOrderclosedesc() {
        return orderclosedesc;
    }

    public void setOrderclosedesc(String orderclosedesc) {
        this.orderclosedesc = orderclosedesc;
    }

    public Integer getOrdercloseuserid() {
        return ordercloseuserid;
    }

    public void setOrdercloseuserid(Integer ordercloseuserid) {
        this.ordercloseuserid = ordercloseuserid;
    }

    public String getOrderclosename() {
        return orderclosename;
    }

    public void setOrderclosename(String orderclosename) {
        this.orderclosename = orderclosename;
    }

    public String getOrdersuccessdata() {
        return ordersuccessdata;
    }

    public void setOrdersuccessdata(String ordersuccessdata) {
        this.ordersuccessdata = ordersuccessdata;
    }

    public String getOrderfaildata() {
        return orderfaildata;
    }

    public void setOrderfaildata(String orderfaildata) {
        this.orderfaildata = orderfaildata;
    }

    public Integer getOrdercreateuserid() {
        return ordercreateuserid;
    }

    public void setOrdercreateuserid(Integer ordercreateuserid) {
        this.ordercreateuserid = ordercreateuserid;
    }

    public String getOrdercreatename() {
        return ordercreatename;
    }

    public void setOrdercreatename(String ordercreatename) {
        this.ordercreatename = ordercreatename;
    }

    public String getOrdercreatereason() {
        return ordercreatereason;
    }

    public void setOrdercreatereason(String ordercreatereason) {
        this.ordercreatereason = ordercreatereason;
    }

    public String getOrdercallback() {
        return ordercallback;
    }

    public void setOrdercallback(String ordercallback) {
        this.ordercallback = ordercallback;
    }

    public Date getOrdercreatetime() {
        return ordercreatetime;
    }

    public void setOrdercreatetime(Date ordercreatetime) {
        this.ordercreatetime = ordercreatetime;
    }

    public Date getOrderupdatetime() {
        return orderupdatetime;
    }

    public void setOrderupdatetime(Date orderupdatetime) {
        this.orderupdatetime = orderupdatetime;
    }

    @Override
    public String toString() {
        return "Orders{" +
                "orderid=" + orderid +
                ", orderno='" + orderno + '\'' +
                ", orderuserid=" + orderuserid +
                ", orderusertruename='" + orderusertruename + '\'' +
                ", orderpayamount=" + orderpayamount +
                ", orderpricetype=" + orderpricetype +
                ", orderstate=" + orderstate +
                ", ordertradeno='" + ordertradeno + '\'' +
                ", orderpaycash=" + orderpaycash +
                ", orderpaycoin=" + orderpaycoin +
                ", orderpaytime=" + orderpaytime +
                ", orderpayment='" + orderpayment + '\'' +
                ", orderfinishtime=" + orderfinishtime +
                ", orderclosetime=" + orderclosetime +
                ", orderclosedesc='" + orderclosedesc + '\'' +
                ", ordercloseuserid=" + ordercloseuserid +
                ", orderclosename='" + orderclosename + '\'' +
                ", ordersuccessdata='" + ordersuccessdata + '\'' +
                ", orderfaildata='" + orderfaildata + '\'' +
                ", ordercreateuserid=" + ordercreateuserid +
                ", ordercreatename='" + ordercreatename + '\'' +
                ", ordercreatereason='" + ordercreatereason + '\'' +
                ", ordercallback='" + ordercallback + '\'' +
                ", ordercreatetime=" + ordercreatetime +
                ", orderupdatetime=" + orderupdatetime +
                ", orderDetailList=" + orderDetailList +
                '}';
    }
}
